package com.deepocean.dao;

import com.deepocean.entity.CentrifugeCondition;
import com.deepocean.entity.CentrifugeEntity;
import com.deepocean.entity.CentrifugeInAndOut1Hour;
import com.deepocean.entity.process.CentrifugeProcessEntity;
import com.deepocean.entity.process.CentrifugeProcessTwoEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CentrifugeDao {

    /**
     * 离心机增加记录
     * @param centrifugeEntity
     * @return
     */
    boolean add(CentrifugeEntity centrifugeEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    CentrifugeInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param centrifugeCondition
     * @return
     */
    List<CentrifugeEntity> getCentrifugeByCondition(CentrifugeCondition centrifugeCondition);

    /**
     * 添加流程数据
     * @param centrifugeProcessEntity
     * @return
     */
    boolean addProcess(CentrifugeProcessEntity centrifugeProcessEntity);

    boolean addTwoProcess(CentrifugeProcessTwoEntity centrifugeProcessTwoEntity);
}
